package com.ucenter.server.org.service;

import java.util.List;

import org.springframework.stereotype.Component;

import com.system.handle.model.ResponseFrame;
import com.ucenter.server.org.pojo.DepInfo;

/**
 * dep_info的Service
 * @author autoCode
 * @date 2018-12-01 09:50:14
 * @version V1.0.0
 */
@Component
public interface DepInfoService {
	
	/**
	 * 保存或修改
	 * @param depInfo
	 * @return
	 */
	public ResponseFrame saveOrUpdate(DepInfo depInfo);
	
	/**
	 * 根据depId获取对象
	 * @param depId
	 * @return
	 */
	public DepInfo get(String depId);

	/**
	 * 分页获取对象
	 * @param depInfo
	 * @return
	 */
	public ResponseFrame pageQuery(DepInfo depInfo);
	
	/**
	 * 根据depId删除对象
	 * @param depId
	 * @return
	 */
	public ResponseFrame delete(String depId);

	public List<DepInfo> findByOrgId(String orgId);
}